package org.ilead.iserve.dao;

import java.util.List;

import org.ilead.iserve.model.HomePage;

public interface IHomePageDAO {
	// property constants
	public static final String USER_ID = "userId";
	public static final String LOGIN_NAME = "loginName";
	public static final String URL = "url";
	public static final String SIGNATURE = "signature";
	
	public abstract void save(HomePage transientInstance);

	public abstract void delete(HomePage persistentInstance);

	public abstract HomePage findById(java.lang.Integer id);

	public abstract List findByExample(HomePage instance);

	public abstract List findByProperty(String propertyName, Object value);

	public List findByUserId(Object userId);

	public List findByLoginName(Object loginName);

	public List findByUrl(Object url);

	public abstract List findAll();

	public abstract HomePage merge(HomePage detachedInstance);

	public abstract void attachDirty(HomePage instance);

	public abstract void attachClean(HomePage instance);
}
